# +----------------------------------------------------------------------
# | Pink [ A modern python web framework ]
# +----------------------------------------------------------------------
# | Copyright (c) 2023 http:#unnnnn.com All rights reserved.
# +----------------------------------------------------------------------
# | Author: chenjianhua <unnnnn@foxmail.com>
# +----------------------------------------------------------------------

from .AuthorizationResponse import AuthorizationResponse


class Policy:
    def allow(self, message="", code=None):
        return AuthorizationResponse.allow(message, code)

    def deny(self, message="", code=None):
        return AuthorizationResponse.deny(message, code)
